package com.scau.ums.mapper;

import com.scau.ums.model.Info;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;

import java.util.List;

public interface CustomedInfoMapper {
    @SelectProvider(method="getUncheckedInfoList",type = com.scau.ums.util.dao.InfoSql.class)
    public List<Info> getUncheckedInfoList(String receiverId);
    @SelectProvider(method="getAllInfoList",type = com.scau.ums.util.dao.InfoSql.class)
    public List<Info> getAllInfoList(String receiverId);
    @SelectProvider(method="getSpecifiedInfo",type = com.scau.ums.util.dao.InfoSql.class)
    public Info getSpecifiedInfo(Integer InfoId);
    @UpdateProvider(method = "InfoIsChecked", type = com.scau.ums.util.dao.InfoSql.class)
    public int InfoIsChecked(Integer InfoId);
    @SelectProvider(method = "selectRowByPageSetOrderByClause",type = com.scau.ums.util.dao.SelectByPageSql.class)
    public List<Info> getLatestInfoList(String table,String orderClause,int startIndex,int pageSize,String whereClause);
    @SelectProvider(method = "countUncheckedInfo",type=com.scau.ums.util.dao.InfoSql.class)
    public int countUncheckedInfo(String receiverId);
}
